#!/usr/bin/env python
# -*- coding: utf-8 -*-
import requests
url ='https://fanyi.baidu.com/'
data={
      'from':'zh',
       'to':'en',
       'query':'人身苦短，我用python'
      }
response=requests.post(url=url,data=data)
print(response.content)


# with open('b.html','w') as f:
# 	print(respose.status_code)
#     #f.write(respose.encoding)
with open('c.html','w') as f:
      f.write(response.content)

